package cn.edu.scau.cmi.zhangxiyang.Singleton;

public class chairman {
	private static chairman ch;
	private String name;
	private chairman(String name) {
		this.name = name;
	}
	
	public static chairman getMarry(String name) {
		if(ch == null) {
			ch = new chairman(name);
			return ch;
		}
		else {
			return ch;
		}
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
